<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<head>
<title> 管理后台 -开心吧   版主</title>
<jsp:include page="/public/header-meta.jsp"></jsp:include>
<jsp:include page="/public/header.jsp"></jsp:include> 
</head>
<body>
<div id="wrap">
<div class="container" id="page-main" >
<div class="row">
<jsp:include page="Sleftbar.jsp"></jsp:include>
<div class='col-xs-12 col-sm-6 col-md-9' >

<div class='box'>
<div class='cell'>
<a href="welcome" class="startbbs1">开心吧</a> <span class="chevron">&nbsp;›&nbsp;

</span> <a href="admin!sectionList">supperAdmin管理后台</a> <span class="chevron">&nbsp;›&nbsp;
</span>
</div>
<div class='cell'>
<table class='topics table' >
<thead>
<tr>
<td align='left' class='auto'>
<input id="checkall" type="checkbox" checked="1" ></td>
<td  align="center" class='w50'>ID</td>
<td align="center" class='auto'>用户名</td>
<td align='center' class='auto'>邮箱</td>
<td align='center' class='auto'>等级</td>
<td align='center' class='auto'>积分</td>
<td align='center' class='auto'>注册时间</td>
<td align='center'>操作</td>
</tr>
</thead>
<tbody>
<s:iterator value="users">
<tr class='center'>
<td class='auto' align='left'>
<input name="" value="${uid}" type="checkbox">
</td>
<td class='w50'>
<strong class='green'>
${uid}
</strong>
</td>
<td class='auto'>
<a href="user!userDetails?uid=${ uid}">${uname}</a>
</td>
<td class='auto'>
<a href="userDetails?uid=${tuid}" class="rabel profile_link" title="admin">${uemail}</a>
</td>
<td align='center' class='auto'>
${uclass}
</td>
<td align='center' class='auto'>
${upoint}
</td>
<td align='center' class='auto'>
<small class='fade1'>
<fmt:formatDate	value="${uregDate}"   					
    type="date"
    pattern="yyyy-MM-dd HH:mm"/></small>
</td>
<td class='w100'>

<button name="uid" value="${uid}" class="btn btn-primary btn-sm a" id="lockBtn">
<c:if test="${ustate==4}">解禁</c:if>
<c:if test="${ustate<4}">小黑屋</c:if>
</button>

<a href="admin!del?users.uid=${uid}" class="btn btn-sm btn-danger" onclick=" return confirm('确定删除？')" data-method="delete" rel="nofollow">删除</a>
</td>
</tr>
</s:iterator>
</tbody>
</table>
<div class='form-actions'>
<input class="btn btn-primary btn-danger" name="batch_del" type="submit" value="批量删除" />
<input class="btn btn-primary" name="batch_approve" type="submit" value="批量审核" />
</div>
</div>
<div align='center' class='inner'>
<div>
<ul class='pagination'>
<s:if test="list.size()!=0">
			<s:include value="page.jsp">
			<s:param name="actionname" value="'admin?a=1&user.uid=16'"></s:param>
			</s:include>
			</s:if>
</ul>
</div>

</div>
</div>
</div>
</div></div></div>
<jsp:include page="/public/footer.jsp"></jsp:include>
<script type="text/javascript">
$(document).ready(function(){
  $("#checkall").bind('click',function(){
  $("input:checkbox").prop("checked",$(this).prop("checked"));//全选
  });
});
</script>
</body>
</html>

